//package nbcp
//
//import org.apache.zookeeper.WatchedEvent
//import org.apache.zookeeper.Watcher
//import org.apache.zookeeper.ZooKeeper
//import java.util.concurrent.Executors
//
//fun test_zookeeper(){
//    var zk = ZooKeeper("dev8.cn:2181", 3000, MyWatcher());
//    println("zk started!")
//    Thread.sleep(1000);
//    zk.close();
//    Executors.newSingleThreadExecutor().submit {
//        println("started!")
//    }
//}
//
//class MyWatcher() : Watcher {
//    override fun process(event: WatchedEvent) {
//        println(event.type.toString() + ":" + event.path + ":" + event.state.toString())
//    }
//}